import { VxeGridProps } from 'vxe-table';
import { BizDeviceProductionVo } from '@/api/device/production/types';

export function getTableConfig(): VxeGridProps<BizDeviceProductionVo> {
  return {
    id: 'tenant',
    loading: false,
    height: '200px',
    autoResize: true,
    border: 'inner',
    resizable: true,
    showOverflow: 'tooltip',
    stripe: true,
    rowConfig: {
      isHover: true,
      keyField: 'id'
    },
    customConfig: {
      storage: true
    },
    columns: [
      { title: '序号', type: 'seq', width: 50 },
      { sortable: true, field: 'stageCode', title: '设备状态', slots: { default: 'status' } },
      { sortable: true, field: 'createTime', title: '时间' },
      { sortable: true, field: 'createByName', title: '操作人' }
    ],
    data: [] as BizDeviceProductionVo[]
  };
}
